package user.zc.helper;


import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD,ElementType.TYPE})
public @interface ExcelAssistant {
    Style column() default @Style();
    Style cell() default @Style();
    String title() default "";
    String mergeRelationColumn() default "";
    boolean rowSpanIfSameValue() default false;
    @interface Style{
        short color() default -1; //        IndexedColors.WHITE.getIndex()
        int sort() default -1;
        int width() default -1;
        Font font() default @Font ;
        int precision() default -1; //小数点后精度
        short alignment() default -1;  //HorizontalAlignment
        boolean wrapText() default false;
        @interface Font{
            short color() default -1;
            short height() default -1;
            String name() default "";
            boolean bold() default false;
        }
    }
}
